﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Bystd.Geo.GeoParsers.Parser
{
    using Bystd.Geo.GeoParsers.Wkt;
    using Geometries;

    public class WktParser
    {
        public WktParser()
        {

        }

        public List<Coordinate[]> FromReader(string content)
        {
            using (GeometryReader reader = new GeometryReader(content))
            {
                return reader.Reader();
            }
        }

        public string ToWriter(Geometry geometry)
        {
            GeometryWriter writer = new GeometryWriter();
            return writer.Writer(geometry);
        }
    }
}
